﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SAutoArenaFightReport extends IMessageBase
    {
        public var fighter:SAutoArenaFightRole;
        public var toFighter:SAutoArenaFightRole;
        public var report:Array;
        public const _type:int = 7027;
        public static var _regist:SAutoArenaFightReport = new SAutoArenaFightReport(true);

        public function SAutoArenaFightReport(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SAutoArenaFightReport();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.fighter.__write(param1);
            this.toFighter.__write(param1);
            SeqSAutoArenaFightRecordHelper.write(param1, this.report);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.fighter = new SAutoArenaFightRole();
            this.fighter.__read(param1);
            this.toFighter = new SAutoArenaFightRole();
            this.toFighter.__read(param1);
            this.report = SeqSAutoArenaFightRecordHelper.read(param1);
            return;
        }// end function

    }
}
